package com.woniuxy.authapp.common.constant;

/**
 * 权限相关常量,这个该放commons里面
 */
public interface AuthConstant {

    /**
     *jwt储存权限前缀
     */
    String AUTHORITY_PREFIX = "ROLE_";

    /**
     * JWT存储权限属性
     */
    String AUTHORITY_CLAIM_NAME = "authorities";

    /**
     * 后台管理client_id
     */
    String ADMIN_CLIENT_ID = "admin-app";

    /**
     * 前台商城场馆
     */
    String PORTAL_CLIENT_ID = "portal-app";
    //前台由原来的ortal-app改为具体的ortal-app-stu,ortal-app-veu,ortal-app-coa

    /**
     * JWT前台商城学生,场馆,教练
     */
    String PORTAL_CLIENT_STU = "portal-app-stu";
    String PORTAL_CLIENT_VEU = "portal-app-veu";
    String PORTAL_CLIENT_COA = "portal-app-coa";

    /**
     * 后台管理接口路径匹配
     */
    String ADMIN_URL_PATTERN = "/yoga-admin/";

    /**
     * Redis缓存权限规则key
     */
    String RESOURCE_ROLES_MAP_KEY = "auth:resourceRolesMap";

    /**
     * 认证信息Http请求头
     */
    String JWT_TOKEN_HEADER = "Authorization";

    /**
     * JWT令牌前缀
     */
    String JWT_TOKEN_PREFIX = "Bearer ";

    /**
     * 用户信息Http请求头
     */
    String USER_TOKEN_HEADER = "user";















}
